package com.threadPool;

import java.util.concurrent.Callable;

public class DemoFutureA implements Callable {


    private String flag ;


    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    @Override
    public String call() throws Exception {

        Thread.sleep(20000);
        DemoA demoA=new DemoA();
        String result = demoA.query();
        return result;
    }




}
